package com.qf.pojo;

import com.alibaba.fastjson.serializer.JSONSerializer;
import com.alibaba.fastjson.serializer.ObjectSerializer;

import java.io.IOException;
import java.lang.reflect.Type;

/**
 * @author YDW
 * projectName:project2202_3
 * time:2022/5/12 16:11
 * description:
 */
public class MyObjectSerializer implements ObjectSerializer{
    @Override
    public void write(JSONSerializer jsonSerializer, Object o, Object o1, Type type, int i) throws IOException {
        jsonSerializer.write("￥"+(Double)o+"元");
    }

}
